from selenium.webdriver.common.by import By
from selenium.webdriver import Keys
from selenium import webdriver
from time import sleep
from selenium.webdriver import ActionChains
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
from time import sleep
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWait



driver = webdriver.Chrome()
driver.maximize_window()
driver.implicitly_wait(10)
driver.get("http://192.168.1.37/ranzhi/www/sys/index.html")
WebDriverWait(driver,10).until(expected_conditions.presence_of_element_located((By.ID,"account")))
driver.find_element(By.ID,"account").send_keys("admin")
WebDriverWait(driver,10).until(expected_conditions.presence_of_element_located((By.ID,"password")))
driver.find_element(By.ID,"password").send_keys("123456")
WebDriverWait(driver,10).until(expected_conditions.presence_of_element_located((By.ID,"submit")))
driver.find_element(By.ID,"submit").click()
WebDriverWait(driver,10).until(expected_conditions.presence_of_element_located((By.ID,"s")))